import requests



# # 请求地址
# url  = 'http://127.0.0.1:8000/useragent/'
# header = {
#     'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36'
# }
# response = requests.get(url,headers=header)
# if response.status_code == 200:
#     print(response.text)


# # 请求地址
# url  = 'http://127.0.0.1:8000/cookies/'
# header = {
#     'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36'
# }
# cookies = {
#     'sessionid':'rgen5bacxxct2ua8no45dfoix5n5ukg1'
# }
# response = requests.get(url,headers=header,cookies=cookies)
# if response.status_code == 200:
#     print(response.text)



# 请求地址
url  = 'http://127.0.0.1:8000/referer/'
header = {
    'referer':'',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36'
}
cookies = {
    'sessionid':'rgen5bacxxct2ua8no45dfoix5n5ukg1'
}
response = requests.get(url,headers=header,cookies=cookies)
if response.status_code == 200:
    print(response.text)
